package com.shwread.android.qysw.activity.pay;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.shwread.android.qysw.activity.BaseSimpleActivity;
import com.shwread.android.qysw10000227.R;

/**
 * 缴纳党费
 */
public class PartyFeePaySuccessActivity extends BaseSimpleActivity implements View.OnClickListener{

    //标题
    private Button btnBack;
    private TextView tvTitle;

    private Button btnFeePayBack,btnFeePayDetail;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_party_fee_pay_success);

        btnBack = (Button) findViewById(R.id.common_header_back);
        btnBack.setVisibility(View.VISIBLE);
        tvTitle = (TextView) findViewById(R.id.common_header_name);
        tvTitle.setText("党费缴纳");
        btnBack.setVisibility(View.GONE);

        btnFeePayBack = (Button) findViewById(R.id.btnFeePayBack);
        btnFeePayDetail = (Button) findViewById(R.id.btnFeePayDetail);
        btnFeePayBack.setOnClickListener(this);
        btnFeePayDetail.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btnFeePayDetail:
                Intent intent1 = new Intent(PartyFeePaySuccessActivity.this,PartyFeePayActivity.class);
                intent1.putExtra("statu",2);
                intent1.putExtra("orderId",getIntent().getIntExtra("orderId",-1));
                startActivity(intent1);
                finish();
                break;
            case R.id.btnFeePayBack://返回首页
                for (int i = 1; i < activityList.size(); i++) {
                    activityList.get(i).finish();
                }
                break;
        }
    }
}
